<?php
    if (!class_exists("Config"))        include_once '../config/classes/class.Config.php';
    $cfg = new config();
?>

<html>
<head>
    <title>ElectrolinerasOnline.com</title>         

    <!-- META -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=8">

    <!-- CSS -->
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo $cfg->pathCss ?>/main2.css"/>      
    <link href='http://fonts.googleapis.com/css?family=Nunito:300' rel='stylesheet' type='text/css'> <!-- 'Nunito', sans-serif; -->
    <link href='http://fonts.googleapis.com/css?family=Convergence' rel='stylesheet' type='text/css'> <!-- 'Convergence', sans-serif; -->
    <link type="text/css" href="<?php echo $cfg->pathJs ?>/jqueryui/css/custom-theme/jquery-ui-1.8.17.custom.css" rel="stylesheet" />	
<!--    <link type="text/css" href="<?php echo $cfg->pathJs ?>/DropKick/dropkick.css" rel="stylesheet" />	-->
<!--    <link type="text/css" href="<?php echo $cfg->pathJs ?>/DropKick/example/example.css" rel="stylesheet" />	-->
    <link type="text/css" href="<?php echo $cfg->pathCss ?>/ezmark.css" rel="stylesheet" />	
    <link rel="stylesheet" href="<?php echo $cfg->pathJs ?>/fancybox/source/jquery.fancybox.css?v=2.0.5" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php echo $cfg->pathJs ?>/fancybox/source/helpers/jquery.fancybox-buttons.css?v=2.0.5" type="text/css" media="screen" />
    <link rel="stylesheet" href="<?php echo $cfg->pathJs ?>/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=2.0.5" type="text/css" media="screen" />

    <!-- SCRIPTS -->
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/jqueryui/js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/jqueryui/js/jquery-ui-1.8.17.custom.min.js"></script>
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/common.js"></script>
<!--    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/DropKick/jquery.dropkick-1.0.0.js"></script>-->
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/jquery.ezmark.min.js"></script>
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/fancybox/source/jquery.fancybox.pack.js?v=2.0.5"></script>
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"/></script>
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/fancybox/source/helpers/jquery.fancybox-buttons.js?v=2.0.5"></script>
    <script type="text/javascript" src="<?php echo $cfg->pathJs ?>/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=2.0.5"></script>
        

        
</head>


<body>
    <div id="contenedor_admin" class="container">

            <?php
                include $cfg->pathBackEnd."/header.php";
                //include "menu.php";
            ?>

        <div id="cuerpo" class="clear">

            <?php
                if (!isset($_GET['m'])) include "default.php";

                else{
                        switch ($_GET['m']) 
                        {

                            case "elementos":
                                include $cfg->pathElems."/admin_info_elems.php";
                                break;
                                                        
                            case "usuarios":
                                include $cfg->pathUsers."/admin_users.php";
                                break;
                            
                            case "noticias":
                                break;
                            
                            case "editar_perfil":
                                include $cfg->pathUsers."/edit_user.php";
                                break;
                            
                            case "cerrar_sesion":
                                //session_destroy();
                                include "default.php";
                                break;
                            
                            default:
                                break;
                        }
                }
            ?>

        </div>
        
        <div id="hidden_variables" class="oculto">
            
            <!-- En este bloque metemos el contenido del fancybox -->
                      
                 
            <?php //include $cfg->pathConfig."/users/add_new_elem.php"?>
            
            <div id="aux_hidden_div">
                
            </div>
        </div>

    </div>
</body>
</html>


